import { Button, Tooltip } from "antd";
import type { ButtonProps } from "antd";

interface IProps extends ButtonProps {
  tooltip?: string;
}

const HL_Button = (props: IProps) => {
  return (
    <>
      {props.tooltip ? (
        <Tooltip title={props.tooltip}>
          <Button {...props}></Button>
        </Tooltip>
      ) : (
        <Button {...props}></Button>
      )}
    </>
  );
};

export default HL_Button;
